#/html/body/div[1]/div/section/section/main/div[1]/div[2]/div[1]/div/input
from Base.Base import Base
from selenium.webdriver.common.by import By
class login(Base):
    user_loc = (By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/div[2]/div[1]/div/input')
    def user(self):
        self.send_key(self.user_loc,'admin')
    pwd_loc = (By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/div[2]/div[2]/div/input')
    def pwd(self):
        self.send_key(self.pwd_loc,'admin')
    surebtn = (By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/div[2]/button[2]/span')
    def sure(self):
        self.click(self.surebtn)
    agree_loc =(By.XPATH,'/html/body/div[1]/div/section/section/main/div[2]/div/div/div/div[2]/button[2]')
    def agree(self):
        self.click(self.agree_loc)
